Binary Software, Inc. Orders and registrations only:
2118 Wilshire Blvd Suite 900 Phone: (800) 8-BINARY (824-6279)
Santa Monica, CA 90403 or: (310) 449-1481
United States of America Fax: (800) 555-7217 or (310) 449-1473
Internet email: sales@binarysoft.com
CompuServe email: 74220,3377
America Online email: BINARY SW
ftp://users.aol.com/binarysw/
窶「 Shareware: $10
笳 This program is distributed as shareware: if you use it please honor the shareware system by sending $10 U.S. to Binary Software at the address above. You can email, fax, snail-mail, or call. When registering please specify the name and version of this program as well as your name, mailing address, email address, phone number, fax number, and your credit card number and expiration date (we accept Visa, MasterCard, American Express, and Discover). You can also pay with a check, money order, or cash.
笳 Binary Software is only collecting the registrations on my behalf; please contact me directly by email for any information, suggestion, permission, or request about this software. If you want to send non-U.S. cash or any other material including software, books, magazines, CD-ROMs or any hardware, please send it to me at my Italian address. If you do so, however, you should also notify me by email because I only receive my snail mail once per month.
笳 If you can窶冲 afford to register you may still want to send Binary Software your name, address and email address so they can send you new product announcements and other special offers.
笳 Site licenses and group discounts are available for 5 or more registrations. Please check my ftp site or send email for more information.
笳 Please register: your support is the only way for me to keep working on cool shareware programs.
窶「 Introduction
笳 CalConvert is a small shareware utility that does integer arithmetic calculations and converts integer values to different bases (decimal, hexadecimal, binary, octal or any custom base between 2 and 32) or to an OSType (a sequence of four ASCII characters). The conversion may be signed or unsigned (you can always enter a signed value, it gets converted to unsigned if needed); the result may be interpreted either as a word (2 bytes) or as a long word (4 bytes). Version 2.0 sports a new clickable bit field display for easy bit-by-bit manipulations. The Return and Enter keys start the conversion; Tab, shift-Tab and the four arrow keys have their usual meanings.
窶「 Configuration
笳 Choosing the 窶廡ields窶 item from the 窶廾ptions窶 menu brings up a configuration dialog that can be used to fully customize CalConvert. CalConvert can show up to 8 fields; each field contains either a mathematical expression, a sequence of 1 to 4 characters (OSType) or an integer number in any base from 2 to 32.
笳 Version 2.0 comes with Font and Size menus that can be used to change the window窶冱 look and size.
笳 Checking the Delay Font Menu option lets you launch CalConvert without immediately building the Font menu, which makes it open much quicker. You can then build the Font menu when needed by choosing Build Font Menu from the Font menu itself.
窶「 The calculator
笳 You may enter mathematical or logical expressions in fields labeled 窶廴ath窶, i.e. things like 窶(12*(128-$20))<<2+2^8窶; the result is shown in all the other fields of the window when you press Return or Enter or click the 窶=窶 button. If the expression can窶冲 be parsed correctly, CalConvert beeps and all other fields are set to zero. The next paragraphs explain the syntax and operators you may use in your mathematical expressions.
窶「 Syntax of the math field
笳 xxx (x=0-9) is a number
笳 $xxx (x=0-9,A-F) is an hexadecimal number
笳 -xxx, -$xxx, $-xxx are negative numbers
笳 '(' and ')' can be used as usual, nesting allowed
笳 spaces are allowed between numbers and operators
笳 no spaces are allowed inside numbers or operators
笳 all numbers are interpreted as 32-bit signed integers
窶「 Order of operators
笳 Operators in the upper lines are calculated first.
笳 Operators in the same line are calculated sequentially.
^ **
* / : % << >>
& | ¥ AND OR XOR
+ -
= == != <> < > <= >=
窶「 Arithmetic operators
+ add
- subtract
* multiply
/ divide
: divide
% remainder
^ power
** power
窶「 Logical operators
(return 1 if true, 0 if false)
= equal to
== equal to
!= not equal to
<> not equal to
< less than
> greater than
<= less or equal
>= greater or equal
窶「 Bitwise operators
<< bit shift left
>> bit shift right
& bit and
AND bit and
and bit and
| bit or
OR bit or
or bit or
¥ exclusive or
XOR exclusive or
xor exclusive or
窶「 Version history
笳 2.2.2 - Added an option not to build the Font menu right away, to speed up the launch process when lots of fonts are installed. Fixed the parser so that it now complains about dangling operators at the end of the expression.
笳 2.2.1 - Recompiled with CodeWarrior 9 and updated documentation.
笳 2.2 - Fixed a bug in the parser that caused bad prioritization of the operators for some complex expressions that didn窶冲 use parenthesis (thanks to Paolo Sasso for finding out the problem).
笳 2.1 - Uses the color utilities pattern as a background pattern under System 7.5 or later. You can set the utilities pattern by holding down the option key inside System 7.5窶冱 Desktop Patterns utility.
笳 2.0 - Added a clickable bit-by-bit representation, font and size menus, 窶徑ong word窶 and 窶忖nsigned窶 check boxes and an 窶彳valuate窶 button; most of the interface code was rewritten to make the CalConvert window a configurable stand-alone code module.
笳 1.2.3 - CalConvert now refuses exponents larger than 32.
笳 1.2.2 - Made the fields dialog movable.
笳 1.2.1 - Cleaned up the code and updated documentation.
笳 1.2 - Recompiled as a fat binary, runs native on Power Macs.
笳 1.1 - Removed System 7 dependance and custom window definition.
笳 1.06 - Added online help, changed menu keys to follow Apple guidelines.
笳 1.05 - Fixed incoherent behavior of the 窶廡ields窶 dialog.
笳 1.04 - Changed name to CalConvert.
笳 1.03 - First shareware version with arithmetic parser.
笳 1.02 - First public release as QuickConvert.
笳 1.01 - Menus added, still looks like a quick hack.
笳 1.0 - Written for my personal use only, very poor interface.
窶「 Distribution
笳 This software is ツゥ1995-96 Alessandro Levi Montalcini. It can be freely distributed as long as it is not modified and there窶冱 no charge for it, but it may not be included in any commercial package without my consent.
笳 All online services and bulletin boards may make it available to their users at no charge other than the normal connection fees.
笳 All non-profit user groups may distribute it at no charge.
笳 All magazines may publish it on floppy disk or CD-ROM without asking me first, as long as I get a copy of the issue containing my software.
笳 All CD-ROM shareware collections and CD-ROM magazines may include it without my prior consent, as long as I get either a copy of the CD-ROM or an offer to buy the CD-ROM at a discounted price.
笳 All redistribution companies such as Pacific HiTech, AMUG, Celestin or Educorp may distribute it, as long as I get a copy of each media containing my software and a catalog of the company窶冱 offerings (where applicable).
笳 You may find the latest version of all my shareware and freeware programs by anonymous ftp to ftp.alpcom.it, inside the /software/mac/LMontalcini directory. The ALM Share and ALM Free packages, which contain most of my stuff and can be registered at a very low price, are also available there.
窶「 Disclaimer
笳 This software should never cause any damage, but you窶决e using it at your own risk. As an independent software developer, I can make no warranties whatsoever on it.
窶「 Have fun!
笳 And don窶冲 forget to register your shareware, so that more cool inexpensive utilities can see the light in the future.